document.write("<script language=javascript src='/js/_index1/dialog.js'></script>");
document.write("<link href='/css/_index1/dialog.css' media='screen' rel='stylesheet' type='text/css'/>");
function show_hint(msg) {
    var d = dialog({
        content: msg,
        quickClose: true
    });
    d.show();
    setTimeout(function () {
        d.close().remove();
    }, 1500);
}
function show_option(msg, href) {
    var d = dialog({
        title: '提示',
        content: msg,
        quickClose: true,
        okValue: '确定',
        ok: function () {
            if (href) window.location.href = href;
        },
        cancelValue: '取消',
        cancel: function () {
        }
    });
    d.show();
}

function pwdPattern() {
    var pwdPattern = /^[0-9a-zA-Z_]{8,20}$/;
    return pwdPattern;
}

function telPattern() {
    var telPattern = Common.patternTel;
    return telPattern;
}

function emailPattern() {
    var emailPattern =/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
    return emailPattern;
}
